﻿using UnityEngine;
using System.Collections;

namespace UI
{

    public class TestBattleFormation : MonoBehaviour
    {
        public UILabel label;
        public int camp;
        public int pos;
        public TestBattlePage page;

        public string heroId = "";

        void OnClick()
        {
            page.ShowSelectPanel(camp, pos);
        }

        public void Refresh(string heroId)
        {
            this.heroId = heroId;
            label.text = heroId + ":" + TableTextBlo.GetText("name_" + heroId);
        }
    }
}